/**
 * Copyright Shper.cn Corporation 2012
 */
package cn.shper.srename;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;

/**
 * @Description: TODO
 * @Version: 0.1 2012-11-24
 * @Author: Shper
 * @Since: JDK 7.0
 */
public class DPanel extends Composite {
    private Text srcPathTxt;
    private Button srcBtn;
    private Text reNameTxt;
    private Text stepTxt;
    private Text outPathTxt;
    private Button okBTN;
    private Table fileTbl;
    private TableColumn noClmn;
    private Button outBtn;

    /**
     * Create the composite.
     * 
     * @param parent
     * @param style
     */
    public DPanel(Composite parent, int style) {
        super(parent, style);

        setSize(660, 559);

        Label srcPathLbl = new Label(this, SWT.NONE);
        srcPathLbl.setBounds(10, 24, 53, 15);
        srcPathLbl.setText("\u6E90\u5730\u5740\uFF1A");

        srcPathTxt = new Text(this, SWT.BORDER);
        srcPathTxt.setText("C:\\");
        srcPathTxt.setBounds(63, 21, 495, 21);

        srcBtn = new Button(this, SWT.NONE);
        srcBtn.setBounds(564, 19, 80, 25);
        srcBtn.setText("\u9009\u62E9");

        Label reNameLbl = new Label(this, SWT.NONE);
        reNameLbl.setBounds(23, 439, 61, 15);
        reNameLbl.setText("\u91CD\u547D\u540D\u4E3A\uFF1A");

        reNameTxt = new Text(this, SWT.BORDER);
        reNameTxt.setBounds(90, 436, 287, 21);

        Label stepLbl = new Label(this, SWT.NONE);
        stepLbl.setBounds(411, 439, 50, 15);
        stepLbl.setText("\u8D77\u59CB\u503C\uFF1A");

        stepTxt = new Text(this, SWT.BORDER);
        stepTxt.setBounds(479, 436, 165, 21);

        Label outPathLbl = new Label(this, SWT.NONE);
        outPathLbl.setBounds(23, 476, 53, 15);
        outPathLbl.setText("\u8F93\u51FA\u5230\uFF1A");

        outPathTxt = new Text(this, SWT.BORDER);
        outPathTxt.setBounds(90, 473, 461, 21);

        outBtn = new Button(this, SWT.NONE);
        outBtn.setText("选择");
        outBtn.setBounds(564, 471, 80, 25);

        okBTN = new Button(this, SWT.NONE);
        okBTN.setBounds(564, 519, 80, 25);
        okBTN.setText("确定");
        okBTN.setEnabled(false);

        fileTbl = new Table(this, SWT.BORDER | SWT.FULL_SELECTION);
        fileTbl.setBounds(10, 51, 634, 368);
        fileTbl.setHeaderVisible(true);
        fileTbl.setLinesVisible(true);

        noClmn = new TableColumn(fileTbl, SWT.CENTER);
        noClmn.setResizable(false);
        noClmn.setWidth(58);
        noClmn.setText("NO");

        TableColumn oldNameClmn = new TableColumn(fileTbl, SWT.NONE);
        oldNameClmn.setWidth(279);
        oldNameClmn.setText("旧名称");

        TableColumn newNameClmn = new TableColumn(fileTbl, SWT.NONE);
        newNameClmn.setWidth(261);
        newNameClmn.setText("新名称");

    }

    /**
     * @return the srcPathTxt
     */
    public Text getSrcPathTxt() {
        return srcPathTxt;
    }

    /**
     * @return the srcBtn
     */
    public Button getSrcBtn() {
        return srcBtn;
    }

    /**
     * @return the reNameTxt
     */
    public Text getReNameTxt() {
        return reNameTxt;
    }

    /**
     * @return the stepTxt
     */
    public Text getStepTxt() {
        return stepTxt;
    }

    /**
     * @return the outPathTxt
     */
    public Text getOutPathTxt() {
        return outPathTxt;
    }

    /**
     * @return the okBTN
     */
    public Button getOkBTN() {
        return okBTN;
    }

    /**
     * @return the fileTbl
     */
    public Table getFileTbl() {
        return fileTbl;
    }

    /**
     * @return the outBtn
     */
    public Button getOutBtn() {
        return outBtn;
    }

    protected void checkSubclass() {
    }
}
